package com.nulldev.util.web.dns.server.message;

public final class DNSRecord {
	private final String recordName;

    private final DNSRecordType recordType;

    private final DNSRecordClass recordClass;

    private final int ttl;

    private final byte[] resourceData;

    public DNSRecord(String recordName, DNSRecordType recordType, DNSRecordClass recordClass, int ttl,
                     byte[] resourceData) {
        this.recordName = recordName;
        this.recordType = recordType;
        this.recordClass = recordClass;
        this.ttl = ttl;
        this.resourceData = resourceData;
    }

    public String getRecordName() {
        return recordName;
    }

    public DNSRecordType getRecordType() {
        return recordType;
    }

    public DNSRecordClass getRecordClass() {
        return recordClass;
    }

    public int getTtl() {
        return ttl;
    }

    public byte[] getResourceData() {
        return resourceData;
    }
}
